﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class Tp_BaoMing:NFinal.Struct
    {
		public System.Int32? id {get;set;}
		public System.Int32? activityID {get;set;}
		public System.String xingming {get;set;}
		public System.String tel {get;set;}
		public System.String context {get;set;}
		public System.String photo {get;set;}
		public System.DateTime? bmDate {get;set;}
		public System.Int32? state {get;set;}
		public System.String memoa {get;set;}
		public System.String memob {get;set;}
		public System.String memoc {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"id\":");
					tw.Write(id==null?"null" : id.ToString());
					tw.Write(",");
					tw.Write("\"activityID\":");
					tw.Write(activityID==null?"null" : activityID.ToString());
					tw.Write(",");
					tw.Write("\"xingming\":");
					tw.Write("\"");
					tw.Write(xingming==null?"null":xingming);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"tel\":");
					tw.Write("\"");
					tw.Write(tel==null?"null":tel);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"context\":");
					tw.Write("\"");
					tw.Write(context==null?"null":context);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"photo\":");
					tw.Write("\"");
					tw.Write(photo==null?"null":photo);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"bmDate\":");
					tw.Write("\"");
					tw.Write(bmDate==null?"null":bmDate.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"state\":");
					tw.Write(state==null?"null" : state.ToString());
					tw.Write(",");
					tw.Write("\"memoa\":");
					tw.Write("\"");
					tw.Write(memoa==null?"null":memoa);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"memob\":");
					tw.Write("\"");
					tw.Write(memob==null?"null":memob);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"memoc\":");
					tw.Write("\"");
					tw.Write(memoc==null?"null":memoc);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
